As already stated, you are not allowed to replace a 2 prong receptacle with a 3 prong one unless there is a ground in your box. Once the precense of a ground has been verified then you also need to properly ground this 3 prong receptacle.
This is done by either pigtailing a ground wire between the receptacle and the box or by installing a UL approved self grounding receptacle.
If no ground is present then you can always install a GFCI type receptacle to supply you with a ground prong, otherwise code dictates a 2 prong receptacle must remain installed. Here's a link that'll show you how to test for a ground and what your options are.
http://www.codecheck.com/250_50_commentary.html
A GFCI does not protect your computer from surges. You'll need a surge suppressor installed for this. And if you don't have a ground in your system then you can buy a Mode 1 surge suppressor to protect your computer