I found on Wikipedia that the equation for primary/secondary wave speed in solids in 3D is
C_{solid,p} = sqrt((K+4/3*G)/rho)
C_{solid,s} = sqrt(G/rho)
where K is the bulk modulus, and G is the shear modulus of the elastic material, and rho is the material density.