Hi,
When a license is registered then you can get one of the license element properties (e.g. ID, MP, etc). Have a look on the "License Elements Properties" section of
"Trial and Licensing Properties" article. So, you could try to get the ID license element property by using the "GetPropertyValue" function.
In what regards to a sample code of how to use the "GetPropertyValue" function, you can download the C# sample attached at the end of
"Integrate Licensing support in C# or VB.NET applications" article.
All the best,
Daniel