Let F defined on [0,r]x[0,2\pi]x[0,\pi] by
F(R, S, T)=(R\cos(S)\sin(T), R\sin(S)\sin(T), R\cos(T))
(the change into spherical coordinates).
The absolute value of its Jacobian is R^2\sin(T).
Your domain of integration (cap) is defined by
{(x, y, z) : x^2 + y^2 + z^2 \leq r^2 , r-h \leq z \leq r}
and its pre-image through F is
D=[0,r]x[0,2\pi]x[0,T_0],
where T_0 satisfies \cos(T_0)=(r-h)/r=1-h/r.
Volume = \int_{D}R^2\sin(T)dRdSdT
= (\int_0^rR^2dR).(\int_0^{2\pi}dS).(\int_…
= 1/3r^3.2\pi.(1-\cos(T_0)) = 2\pi.h.r^2/3.
QED.