Nothing on the PC but,
if you have the Restore CD for the iMac or a copy of the System 9 or OS X installation disks, you can format it from those.
Install the HD, insert the CD and power it up. It should start from the CD and allow you to use the Disk Utilities program that is on the CD.
You did not give any details as to what version of iMac this is or it's age.
Check at work to see if anyone has the original disks for this thing.