I think you have a couple choices once you get the carpet up. If it needs refinished, you can rent a floor sander, there are a few different kinds, and attempt to sand down, restain, and refinish. It's a lot of work, and may be worth hiring an experienced person to do it. Consult your local rental agent about the different types of sanders. Rent a video, or go online to research refinishing methods.