Hello,
Yiu may only take action as and when the case is filed by them with these allegations.
If such evidences are produced then challenge the validity of the suit and evidence and file a case against them for hacking into your account.
If both of them are ready for divorce then I would advise you to go for mutual consent divorce.
Regards