I've never done it myself but here are links for people who have changed their front and rear wheel bearings. Good luck and post up any lessons learned when you're done!
Front: http://forum.e46fanatics.com/showthread.php?t=610725
Rear: http://forum.e46fanatics.com/showthread.php?t=756103
