There was a product called Cannalyse - but I believe the name has changed so you'll probably have to do a bit of reasearch (Google is your friend) to find out what it's called now.

It will give you a breakdown of the concentration of several different chemicals in a given sample.