|Put the Windows installation disc in, then open up the BIOS and set it to boot from CD before the hard drive.|
How old is the computer? If it's since 2005, it likely had a recovery partition on it for easy reinstallation. Though it's possible that partition has since been removed or the previous owner wasn't aware of it when he/she installed the pirated operating system.
Apologies if I don't respond to your reply immediately. I don't check this site daily, but you're welcome to PM me as a reminder.