Do you need to know what TFS version you are running?  Our resident genius Andrew Coates whipped up a utility to do just that.  You can download it here.