Y[l_,m_] := SphericalHarmonicY[l,m, theta, phi]

Integrate[Conjugate[Y[0,0]] Y[0,0], {theta,0,Pi}, {phi,0,2 Pi}]