Hi @Talib Khan ,
The SQL server license key is embedded in the installation package, when you purchase SQL server license from Microsoft volume license service center. You can see the license key on license key page during the installation.
If you have further question about SQL license, I suggest that you can consult professionals in this area. please call 1-800-426-9400, Monday through Friday, 6:00 A.M. to 6:00 P.M. (Pacific Time) to speak directly to a Microsoft licensing specialist. Or you can go to Volume Licensing Service Center support. Please choose region/language and choose to call or have web. People there will help you more effectively.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".