Can’t be done.
Canon 983. §1. The sacramental seal is inviolable; therefore it is absolutely forbidden for a confessor to betray in any way a penitent in words or in any manner and for any reason.
§2. The interpreter, if there is one, and all others who in any way have knowledge of sins from confession are also obliged to observe secrecy.
The only thing I could venture, is that a court might be able to subpoena witnesses (other penitents as well as people who might have been in the church) who saw Priest X and accused defendant Penitent X go into the confessional. Video surveillance archives, showing comings and goings in the confessional area, might also be admissible as evidence. Even then, this would only establish that Penitent X confessed to Priest X, or at least was in the confessional, and would not address anything said in the confessional.