This information is available by default at the bottom of the ReportViewer and on the Dashboards.aspx page. If your key does not expire or you have more than a week before your license expires, you will not see this information.

There is no way to access any license information in your own C# code.