Migrating a License to a new machine

Hello,
I have to migrate a license of  my Trados 2017 Freelance Plus to a new laptop computer, as the older one is not working anymore (I can't even turn ot on anymore).
Later, I'd like to upgrade my license to Trados 2021.
How should I proceed?

Kind regards,

Anne.