By measuring how quickly seismic waves travel between different points on the earth's surface. Seismic waves travel at different speeds depending on the density and type of material they pass through, which lets us determine the composition of the Earth.