Product (k**2,(k,1,m))
factorial(m)**2
(Product(k**2, (k, 1, m))).doit()
Experiment with SymPy at SymPy Live.