Topos-theoretic classification of Lie groups