Depends where it came from, but a few places to look before giving up:
If it came with the laptop, the key is usually built into the BIOS and Windows picks it up by itself after a reinstall. You can see it in an admin PowerShell with (Get-CimInstance SoftwareLicensingService).OA3xOriginalProductKey
If you bought it online, search your email for “product key” or the store name. If it was from Microsoft, it’s under Order history at account.microsoft.com.
Older PCs sometimes have it on a sticker underneath or inside the battery bay.
And if Windows was activated before and you’re signed in with the same Microsoft account, you may not need the key at all. Try Settings > System > Activation > Troubleshoot first.