“McQueen’s Machines”, a recent book by Mike Stone and son Chad McQueen, is an excellent read. Much background information as well as coverage of all the bikes, cars and airplanes Steve owned at different times, especially the ones which appeared in his movies.
As far as I know he drove all of his scenes in LeMans driving the 917-10’s Porsches around LeMans aka the LaSarthe circuit. One of the most successful race cars in history but not particularly safe.
James Garner did all of his driving in Gran Prix and was a very good driver like Steve.
As far as Sand Pebbles - probably his best film. The Great Escape and Magnificent 7 was also pretty good too. :-)
*