To the best of my knowledge there is no native way to do this.
You would need to create a fixlet that would run the ping command and output it to a file then use an analysis to read that file.
You could create the action as a policy action if it’s something you need to do more than once.
wait cmd.exe ping 192.168.0.1 > "c:\temp\ip.out"
then use an analysis to do
if (exists file "c:\temp\ip.out") then (lines of file "c:\temp\ip.out") else nothing
or to match your exact needs
if (exists file "c:\temp\ip.out" whose (not exists line whose (it contains "could not find host") of it) ) then "YES" else "NO"