In genus zero, a very useful reference is Ezra Getzler, "Operads and moduli spaces of genus 0 Riemann surfaces""Operads and moduli spaces of genus 0 Riemann surfaces". He determines generating series for the $\Sigma_n$-equivariant Poincaré polynomials of $\overline M_{0,n}$ and $M_{0,n}$, and proves the purity of the cohomology of $M_{0,n}$: the cohomology group $H^i(M_{0,n})$ carries a pure Hodge structure of weight $2i$ (of Tate type).
In genus one, there is a recent preprintpreprint of Gorinov, available at http://www.liv.ac.uk/~gorinov/, that determines the cohomology of $M_{1,n}$ with its Hodge structure. I believe that what he does is the following:
Maybe I should mention at this point that there is plenty to read about how to compute the cohomology of these local systems on $M_g$ when $g \geq 2$. For $g=2$ and $g=3$ you can read a sequence of papers of Faber, van der Geer and Bergström, who work on computing/conjecturing Euler characteristics of these local systems in the Grothendieck group of $\ell$-adic Galois representations by means of point counts. The Euler characteristic doesn't give you the cohomology, but it gives you partial information. In particular because you know that these local systems are pulled back from $A_g$, and on $A_g$, most cohomology groups of these local systems vanish. (There is a wealth of information in Faltings-ChaiFaltings-Chai, chapter 6.) Then you can apply the Gysin exact sequence for the image of $M_g$ in $A_g$ under the Torelli map.
For $n=2$ you need to compute the cohomology of the local systems $V_{2}$ and $V_{1,1}$ on $M_2$. Getzler manages to determine all but two Betti numbers without this information in "Topological recursion relations in genus two""Topological recursion relations in genus two" and expresses the final Betti numbers in terms of their cohomology. The cohomology of these local systems can be found in the more recent paper by Hulek and Tommasi, "Cohomology of the second Voronoi compactification of $A_4$"Cohomology of the second Voronoi compactification of $A_4$", Appendix A. (This appendix also contains some things useful for $M_3$.) Together these papers determine the Betti numbers of $M_{2,2}$. I would guess that you can compute also the Betti numbers of $M_{2,3}$ from this information, since the only "new" local systems that appear for $n=3$ have odd weight so their cohomology vanishes, but I have not sat down to compute the Leray spectral sequence here.
The Betti numbers for $M_{2,4}$ I suspect are unknown. Tom Church writes above that they can be found in Bergström-Tommasi, but I think this is a misreading of their paper. As Tom writes, much of the paper of Bergström and Tommasi summarizes their previous work, done separately and by different methods. Tommasi's work uses the Vassiliev-Gorinov method of computing the cohomology of complements of discriminants. This gives you the Poincaré-Serre polynomial, and in particular the Betti numbers. Bergström uses point counts over finite fields, which gives you the Euler characteristic in the category of $\ell$-adic Galois representations (or what they call the Hodge Euler characteristic), but NOT in general the Betti numbers. The results on $M_{2,n}$ are due to Bergström in "Equivariant counts of points of the moduli spaces of pointed hyperelliptic curves""Equivariant counts of points of the moduli spaces of pointed hyperelliptic curves".