How can we know if a gateway is logged in?

For example, each XMPPConnection is configured to support YAHOO & GTALK.

I can send a disco#info to find out if a particular gateway has been registered with an account.

Is there something like a disco IQ that I can send to detect whether the gateway is online (online means a Presence.available was sent before) ?

Thanks

Gavin