In GM cars, OnStar offers an option called "Smart Driver" which you have to opt-in to. I will not be opting in.
I can't imagine why anyone would...but I bet the data is there anyway for a court to demand.
This is how OnStar describes it:
"What information does Smart Driver capture?
Upon the Memberís consent and enrollment in Smart Driver, depending on vehicle capability, the vehicle will collect specific driving behavior data, including hard braking events, hard acceleration events, time spent idle, speeds over 80 miles per hour, when a trip occurs and the number of miles driven.
How often is data collected from the vehicle?
Smart Driver data is collected by OnStar from the vehicle upon every ignition cycle. Once data is collected, Members may log in to their OnStar account and view this information on the Smart Driver Activity Page from their computer or mobile device."