Find out your own license number in Visual Studio 2010
After all, product key and license key for current installation of Microsoft Visual Studio 2010 can be found at
..\Program Files\Microsoft Visual Studio 10.0\Microsoft Visual Studio 2010 edition\setup.sdb, in the Product Key section.
Here is the page on MSDN forums about it.
If this file is missing (some installations do not have it), you can find it in the registry:
HKEY_LOCAL_MACHINE > SOFTWARE > Wow6432Node > Microsoft > VisualStudio -> 10.0 > Registration > 2000.0×0000 > PIDKEY
Credit: https://www.quora.com/I-forgot-to-save-my-Visual-Studio-product-key-How-should-I-proceed