in reply to Checking that local Windows machine is idle

SysInternals makes a program called PMon that is free for download and will give you a process listing.
open(LIST, "pmon|"); while(<LIST>) { # analyze output of pmon here... }
Something like above should do the trick. I have never used PMon, so I don't know what the ouput looks like, but I would think it would give you a process's current state in the output.

Jeremy