Computing the integral cohomology of $K(\pi,n)$'s is feasible but a bit tricky. In fact the only reference I know is exposé 11 of H. Cartan's seminar, year 7 (available on Numdam)exposé 11 of H. Cartan's seminar, year 7. I'd be interested if there are other sources that cover that.