how to recover product key?

Moving from win 10 to win11. I was told I'll have install on new computer