How to ping a mobile device(android/win mobile) from a web service?

I am developing an application for checking if a mobile device is available or not through a service.

How can I write a PING (or kind of) utility to check the availability of mobile device?

Thanks,

Ajmera 

Hi Ajmera,