Is there a way to find out through WSH which workstations in a Windows domain are blocked?
2 answers
http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov04/hey1115.mspx
If you scroll down the page, check if the computer is locked on the script page. The script basically hijacks running processes for the machine and looks for the scrnsave.exe file.
It's also worth noting that the author of this script states that he does not know of a reliable way to determine if a computer is locked. Hope this helps, or at least points you in the right direction.
+1
source to share