You might be better off in the
Bicycle Mechanics Forum. As far as I am aware, it varies depending on the type of hub, and may not be possible at all with some hubs. But in principle it should be easy, you just need a new axle, nuts and washers. Your LBS should be able to advise you.