Use an allen key, put it inside the wheel where the axle goes between the bearings, and kind of use the allen key as a lever to lift the bearing out of the bearing slot. Putting them back in; just press them in and they should go in, unless they're metalcores then you might need to use a press or a hammer or something.
Edit: Beaten to it by Matt haha