Running asadmin version --verbose in GlassFish Web Profile produces the following output:
Version = GlassFish Server Open Source Edition 4.0 (build cf126330-private), JRE version 1.6.0_26
Command version executed successfully.
It doesn't indicate if it's a Web Profile.
Need an easy to tell if a GlassFish installation is Web Profile, or any other profile, and version command seems the closest fit.
server.log should also include the same product/profile info. I guess the value furnished to version command is also used for the product info in server.log.