https://en.wikipedia.org/wiki/Driver%27s_Privacy_Protection_Act
The statute prohibits the disclosure of personal information (as defined in 18 U.S.C. § 2725) without the express consent of the person to whom such information applies, with the exception of certain circumstances set forth in 18 U.S.C. § 2721. These rules apply to Departments of Motor Vehicles as well as other "authorized recipient[s] of personal information", and imposes record-keeping requirements on those "authorized recipients."
The permissible uses are:[3]
...
4. For use in connection with any matter before a court or arbitration proceeding.