You can obtain the license code for any unit either as described above, or from the /IP neighbors display of any neighboring unit.
Whenever I receive a new unit, I log into my account at MikroTik.com and assign that license code to myself. The web interface tells me who the license was originally issued to, which is a nice added check.