Your Windows 10 product key serves as proof that you actually own Windows 10, and might need to be entered when you reinstall or upgrade Windows.
You can find your computer's name on a Windows PC by opening the "About" menu, and on a Mac with the "Sharing" menu.