If you don't care about the rest of the Taskmanager information, the Win32::GUITest example
spy-- might get the right information for you.
Super Search for "spy--" and you'll find a couple of examples of monks who've hacked the basic script for their own purposes.