You parse the XML in the Keyboard Maestro Macros.plist file.
That's how I got the information I use in Macro Reporter:
For more information, see the wiki Searching the Forum for Answers section.