TFS build mail template is located on %PROGRAMFILES%\Microsoft Team Foundation Server 2010\Application Tier\TFSJobAgent\Transforms, example:BuildCompletedEvent.xsl
But, can someone tell me where is the source xml which is used to generate the notification mail?