There's a new API called GetProductInfo in Vista, which determines if you are on business, ultimate, etc... edition of Vista. There are 25 different editions listed:
Neowin.net
Neowin.net