Sodium Pentothal (aka Sodium thiopental, thiopentone sodium, trapanal) is basically just a general, fast acting anesthetic. The formula is C11H17N2NaO2S.
More often, it is given as an anesthetic before using other anesthetics. It is also used in lethal injections. Like you said, it can also be used as a truth serum. It's actually quite interesting how it works. It interferes with your judgement and cognative ability, making you an easy target for someone to get information from.