On a network license server, licenses are maintained on the server. No additional steps are needed to preserve network licenses.
For stand-alone licenses, you need to move the licenses to a safe place before re-imaging the computers. You can use the License Transfer utility to move the licenses. After the re-imaging, return the licenses to the correct computer. Each license only works on the computer for which it was created.