If you have ungrounded outlets in your home, your safest option would be to rewire all of these outlets. Before rewiring, make sure to check every outlet to see if they're ungrounded. You can use a circuit tester to check each outlet to make sure they're wired correctly and if they're grounded.