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 export the licenses to a safe place before re-imaging the computers. You can use the License Transfer Utility to export the licenses. After the re-imaging, import the licenses to the correct computer. Each license only works on the computer for which it was created.