Use a long drift and tap them out gently from the otherside. Once they are out check em over and if in doubt replace. To replace them, I tend to cover em in grease, stick em in the freezer to cool off nicely, heat up the rim a bit with a heat gun and then pop them in. Use a large socket to push back into place.
after the wheels are coated and before you put everything back together, clean it all up and coat everything with a layer of grease to help prevent corrosion. Cant help myself from doing this... too much mountain biking LOL