To do this, you can run a web request to your SharePoint URL and then grab the site header.
12.0.0.6535 MOSS 20071 or WSS 3.0 SP2 + December 09 cumulative update (KB960010 + KB960011)
12.0.0.6524 MOSS 20071 or WSS 3.0 SP2 + December 15 update (KB977027) + KB977026)
12.0.0.6520 MOSS 20071 or WSS 3.0 SP2 + October 9 cumulative update (KB974989 + KB974988)
12.0.0.6514 MOSS 20071 or WSS 3.0 SP2 + August 09 Cumulative Update (KB973400 + KB973399)
12.0.0.6510 MOSS 20071 or WSS 3.0 SP2 + June 09 cumulative update (KB971538 + KB971537)
12.0.0.6504 MOSS 20071 or WSS 3.0 SP2 + April 9 cumulative update (KB968850 + KB968851)
12.0.0.6421 MOSS 20071 or WSS 3.0 SP2 (KB953338 + KB953334) [Updated on August 1, 09: downloading SP2 now includes a fix (KB971620) fixes an activation problem more information about the Microsoft SharePoint team blog]
12.0.0.6341 MOSS 20071 or WSS 3.0 February 9 cumulative update (KB961755 + KB961756)
12.0.0.6335 MOSS 20071 or WSS 3.0 December 08 Cumulative Update (KB960010 + KB960011)
12.0.0.6331 MOSS 20071 or WSS 3.0 October 8 cumulative update (KB957691) + KB957693, KB958567 and KB958569)
12.0.0.6327 MOSS 20071 or WSS 3.0 August 08 Cumulative Update (KB956056) and KB956057)
12.0.0.6318 Update for MOSS 20071 or WSS 3.0 (KB951695 & KB951297)
12.0.0.6303 Hotfix MOSS 20071 or WSS 3.0 after SP1 (KB948945)
12.0.0.6301 Update for MOSS 20071 or WSS 3.0 after SP1 (KB941274)
12.0.0.6300 Update for MOSS 20071 or WSS 3.0 after SP1 (KB941422)
12.0.0.6219 MOSS 20071 or WSS 3.0 SP1
12.0.0.6039 MOSS 20071 or public update WSS 3.0 October
12.0.0.6036 MOSS 20071 or WSS 3.0 August 24, 2007 hotfix package
12.0.0.4518 MOSS 20071 or WSS 3.0 RTM
12.0.0.4407 MOSS 20071 or WSS 3.0 Beta 2 TR
12.0.0.4017 MOSS 20071 or WSS 3.0 Beta 2
12.0.0.3111 Office 12 (PDC image - pre-beta) - This version of Office does not have a support link in the Add / Remove Programs dialog box.