It can be done by inserting XP cd,restart,boot from cd,go on with a new installation.In case of laptops there may be some cd.. with the necessay tools.
if u want to format with keeping data loook this article
http://www.techsupportforum.com/cont...ticles/49.html