Try using NETSVC from the NT Resource kit with the /query switch to check the status of a server.

Good luck.

Roneil