SQL doesn't keep track of how it's licenced, that's paperwork. (other than SQL 2012 in one case)
As for server name, version and edition, have a look at the MAP tool from Microsoft.
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass