Code Metrics for both Visual Studio 2005, 2008, 2010 and 2012 are pretty much the same. You can access them from the 'Analysis" menu in Visual Studio and they give you a view on your code to help you identify specific thing you might want to fix.
This has never been available as part of an automated build and really makes no sense there as they are interpretive and not descriptive. Just because you have a high Cyclomatic complexity does not mean your code is bad.
More info: http://msdn.microsoft.com/en-us/library/bb385911.aspx
It may be useful for you to explain what you are trying to achieve so that I can better point you to a solution.
- What value are you trying to achieve?
There does seem to be a CodeMetric build activity as part of the Community TFS Build Extensions but I am not sure if it does what you want.