Format Ur Computer Via Hard Drive
Make a image of your Xp SP2 in your hard drive or borrow it from someone in your pen drive and mount this image via demon tool,alchohal, clone cd or any other virtual drive
now double click it
A window appears and ask u what do u want to do
Select install windows Xp professional/home edition
Now a new windows open in that click next and it will ask for key
Give the key
Click next
Now a option comes copy files in here click copy files in hard disk
Now press next
It will start copying file in your hdd
And restart the windows
Now follow the normal procedure
And now u can format your any drive (if it has OS also u can format)