You can address most judges at the start of a letter as "Dear Judge" (or "Dear Justice" if they serve in a U.more