Unbolt/unscrew it from underneath & then have the new one’s hardware line up with the old one.
If you mean, How to refinish it, then it depends on what it is made from & your skill level.
You can paint a wood tabletop.
You could try sanding it lightly and then painting it.
Tops can be removed from the legs and another surface can be installed. Options are endless.