,is there any way of formatting the hard disk from the windows installation CD?
Yes, pop the disc in, use the BIOS to get the machine to boot from the cd & follow the instructions (carefully). From memory, xp installation will prompt you quite deliberately to hit different keys if you opt to format the hard drive, presumably to make you think twice before wiping the drive.