nn = 40; CoefficientList[ Series[Sum[z^((2 h)^2)/Product[(1 - z^i), {i, 1, 2 h}]^2, {h, 0, nn}], {z, 0, nn}], z]
(* or by brute force *)
Table[Count[Map[EvenQ, Map[DurfeeSquare, IntegerPartitions[n]]],
True], {n, 0, 30}]
(* A program translated from Maple: *)
b[n_, i_] := b[n, i] = If[n == 0, 1,
If[i < 1, 0, b[n, i - 1] + If[i > n, 0, b[n - i, i]]]];
T[n_, k_] := T[n, k] = Sum[b[m, k]*b[n - k^2 - m, k], {m, 0, n - k^2}];
a[n_] := Sum[If[EvenQ[k], T[n, k], 0], {k, 0, Floor[Sqrt[n]]}];