Forum Moderators: open
[1] Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4
[2] Opera/9.00 (Windows NT 6.0; U; en)
[3] Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 6.0)
For FF1.5, Opera9 and IE7b respectively. The presence of "Windows NT 6.0" in each case should indicate Windows Vista.
But beware that user agents can be faked, so it's not 100%, but I don't think there is anything better?!