But that would run in the same network time out if the machine is off (mean only to return if something exists!)

the best way is a combination of ping and if reply ok, a mapping to ipc$ !
_________________________