If your OS is located at C: drive then you will have to use a bootable floppy or CD. After booting from floppy or CD,you can go to command prompt and them type
format C:
And if your OS is not located at C then you can do that while running windows xp.