What do scientisits examine to determine temperatures (from stable isotopes) and greenhouse-gas concentrations over the past several hundred thousand years

What do scientisits examine to determine temperatures (from stable isotopes) and greenhouse-gas concentrations over the past several hundred thousand years