If you have an operating system installation disk, simply use it to format the hard drive during the installation process. If the password is for the OS it doesn't really matter. If the password is for the BIOS then download the manual for the motherboard and reset the BIOS memory.