Depending on the install method, the key may be in the EFI (motherboard) or on the drive.
If it’s on the drive, then “magic jellybean keyfinder” can grab it for you.
If it’s in the EFI, then you may not need to enter it when replacing the drive, or you could not a Linux disk and look in /sys/firmware/acpi/tables/MSDM