I'm not sure if there is something you can programmatically derive in the SDK, I think the last time I went looking for this I came up empty.
Usually I create a version table based on something like what's listed in this KB: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=100374...