No offense taken.
I just stumbled on this response from years ago. I guess answering late is better than answering never. There are two good ways to get the version of the compiler. Inside the source code you can test for __SUNPRO_C which has a hex integer value representing the major and minor version of the compiler, from a script you can use "cc -V" or "CC -V" to get the version of the C or C++ compiler. Recent releases of Studio do not have the ability to install subsets of the packages, so you either have it all or you have none of it.