There is a really fabulous XML file that can be generated when you build. Called the BuildInfo.config file.
https://msdn.microsoft.com/en-us/library/dn449058(v=vs.120).aspx
/p:GenerateBuildInfoConfigFile=True
creates BuildInfo.config at the root of the web project
<?xml version="1.0" encoding="utf-8"?>
<DeploymentEvent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/VisualStudio/DeploymentEvent/2013/06">
<ProjectName>Agriculture</ProjectName>
<SourceControl type="TFS">
<TfsSourceControl>
<ProjectItemSpec>$/ServerPath/To/Your/Project.sln</ProjectItemSpec>
<ProjectVersionSpec>C39469</ProjectVersionSpec>
</TfsSourceControl>
</SourceControl>
<Build type="TeamBuild">
<MSBuild>
<BuildDefinition kind="informative, summary">CIA_TEST</BuildDefinition>
<BuildLabel kind="label">YOUR_PROJECT_20170406.04</BuildLabel>
<BuildId kind="id">a7e16be8-141d-4193-b200-b57b19f1564a,vstfs:///Build/Build/34814</BuildId>
<BuildTimestamp kind="informative, summary">Thu, 06 Apr 2017 16:49:22 GMT</BuildTimestamp>
<Configuration kind="informative">Release</Configuration>
<Platform kind="informative">AnyCPU</Platform>
</MSBuild>
</Build>
</DeploymentEvent>