To chime in a few days late, you can also get that information passively by listening to relevant Event Notifications. We provide a set of Web Services on our download page which can be used directly, or as examples, of how to listen for EMS Events and respond in a variety of ways.
This would completely eliminate your need to poll the EMS.