The hard work may already have been done for you.

Have a look at the network tools on http://www.webattack.com/ - a quick search for ping came up with this nifty little utility: http://www.webattack.com/get/ipscan.shtml in their network scanner category.