You are essentially having her declared mentally incompetent if you are denying her a divorce because she is being treated for a mental illness. I would be shocked if divorces were not allowed without such a determination of incompetence, as people can be under treatment for many years.
I would advise you think a great deal before using such a tactic.