generally there is either a disk that comes with the laptop to help you with that
as well as some laptops when they boot it will give you a couple function keys(like the f12 key) and it will say "restore to factory defaults press [function key ____]".
This is all of the top of my head ... have you tried YouTube or searching the forums?