You'll have to backup the LMS data on the current machine first. Then build your new machine, install the LMS application (including license file) and then restore the data onto that installation.
It would be a good opportunity to move to LMS 4.2 while you're at it. Detailed procedure is in the Installing and Migrating Guide.