Get your hands on the XP disk or manufacturers OS disk and pop it in the drive. Reboot.
If the computer doesn't ask "Boot from CDROM?" or auto boot the XP install disk - goto the manufacturers website to see how to change the settings (BIOS) to boot from CDROM.
Your choices including formatting and installing a fresh copy of the OS will be obvious when the CD runs.