If the mother receives SSDI based on her earning record, she will continue to receive the payment even after a divorce is finalized.
If she received spousal benefits, her payments would not be affected unless:
The marriage was less than ten years
She gets remarried
She becomes eligible to receive larger payments on her record