|Does your hp have a recovery/restore partition? If so you would hit a key upon bootup and would be presented with the option to restore the laptop back to factory defaults.|
Otherwise you would need a disk and the driver cd for the laptop.
This is if you wish after formatting to reload the OS. You could just use KillDisk and wipe the drive.
Answers are only as good as the information you provide.
How to properly post a question: http://tinyurl.com/2fsqqmu