Can a judge require one to reveal attorneys' fees paid?

I am involved in a divorce.
I am the defendant, and I am not suing for attorney’s fees.
My spouse is the plaintiff and she is suing for attorney’s fees.

The judge has ordered that my lawyer present an accounting of all the fees I have paid to date to my lawyer. My lawyer says the judge can’t do that because of attorney-client privilege or something like that, but the judge has that in his order. The judge wants to see what I have paid, I guess to compare it to what my spouse has paid.

Can a judge do this, by statute or case law?

Actually the fees you have paid your attorney are not subject to the attorney client privilege and it is within the judge’s power to order this information disclosed. Only private conversations you have with your attorney are subject to the privilege.