It sounds like your describing the cv outer axle, or " shaft" coming thru the hub. The wheel bearings are in the hub itself, behind the grease seals. Once you remove the seals, there shot, so get some new ones, remove the bearings, clean them and inspect the races for damage. If all is good, you can repack them and reinstall. If there's any question about their freeplay, or any scoring of the races, replace them all. You'll need a shop press and if you don't have the correct size bearing tools, you'll have to get creative with some large sockets or whatever. Don't forget to torque the nut or lockring to 150 ft lbs, it's critical.