Brian Harry blogs (More Expirations Coming Soon...) about a new utility (TFSVersionDetection) that simplifies the detective work to determine not only which version/edition of Team Foundation Server you have, but also the status of the underlying SQL Server. This saves you the trouble of the process I outlined in my earlier post (Which Version of Team Foundation Server Do I Have?).
In the last couple of weeks, we have put together a utility that will detect what version of TFS and SQL you are running and tell you how many days you have left before expiration. Unfortunately, I haven't figured out how to easily detect how many days remain before a trial of SQL expires so for now it just includes that information for TFS.