One possibility is to check for the presence of VBE6.DLL in C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6. Or poke about in the registry looking for references to that DLL or the string VBA.
Note that this location/file name might be different for Office 2010 as there are some changes in the VBA editor.
Tony Toews
2009-09-09 20:19:39