This is how you would find out if a machine had remote desktop running:
C:\>portqry -n server01 -e 3389
Querying target system called:
Attempting to resolve name to IP address…
Name resolved to 10.1.1.1
TCP port 3389 (unknown service): LISTENING
Since ICMP (ping) is disabled so often these days PortQry is now the new ping.