$12^n=2^{2n}3^n$, so its divisors are $2^a3^b$ with $0\le a\le2n$, $0\le b\le n$: there are $(2n+1)(n+1)$ of them.
Pair each divisor $d$ with $12^n/d$; each pair has product $12^n$ (if the number of divisors is odd (Theorem 88), the unpaired middle divisor is $\sqrt{12^n}$). So the product of all divisors is $(12^n)^{(2n+1)(n+1)/2}$.
The sum of the base-$12$ logarithms is $\log_{12}$ of the product: $\dfrac{n(n+1)(2n+1)}2=1950$, so $n(n+1)(2n+1)=3900=12\cdot13\cdot25$.
The left side increases with $n$, so $n=\boxed{12}$.