"Q: I have an outlet with only 2 slots (works with 2-prong plugs only). Can I replace it with an outlet that has 2 slots plus an opening for ground? (works with 3-prong plugs)

You can replace a 2-slot outlet with a grounding outlet only if your home wiring provides a ground connection at the outlet box. A qualified electrician can determine this for you. Otherwise, you must replace a 2-slot outlet with a 2-slot outlet.The National Electrical Code allows you to replace a 2-slot outlet with a GFCI receptacle even if there is no ground connection available. This is a safe, practical solution for upgrading from 2-slot outlets."
http://www.leviton.com/OA_HTML/ibeCCtpSctDspRte.jsp?section=15062&minisite=10026