You'd have to make an application to a court to prove you have a legal right to access the information. That's not an easy process or one that you should probably be undertaking on your own. You'd need to carefully consider what legal basis you have to obtain the information, find the right court to be able to grant you such an order, convince the court of your right, and probably have the application contested by your ex-partner.