Your computer either has discs that came with it for installation, or more usually these days a restoration partition on the hard drive, usually D, in which case you might have been required to make some back up DVDs and CDs for use in the event of a reinstall of the operating system.
As you have not given us much information to go on have a read of this for restore partitions;
http://www.computerhope.com/jargon/h/hiddpart.htm
And this for general advice;
http://www.officialwindowsmagazine.com/news/reinstall-windows-for-the-last-time/
You will probably have to Google "restore to factory settings make / model / Windows edition" etc and someone might venture a detailed opinion.
http://uk.search.yahoo.com/search?p=restore+factory+settings+computer&fr=ush-ans
Derek C has a good stock answer to these type of questions, but seems to be asking questions rather than answering them today!
Best of luck with it, Bert.