J.B.
My parents and in-laws have done a great job of staying out of my divorce and maintaining relationships with both my ex and me. In my case, I've always had a great relationship with my in-laws (the entire family) and truly consider them family. As the custodial parent to our children, I am also the keeper of the grandchildren, whom my in-laws adore more than anyone else in the world. Although our families don't know the details of everything that happened in our marriage (cheating, financial problems, etc.) they do that he is mostly responsible for things ending and is the "bad guy" in this mess, but he's still their son/brother/nephew/cousin and they love him, warts and all.
When we first announced that he was moving out, my ex's parents and brother were quick to reach out to me directly and share that they were sorry at the turn of events, that they still love me and the kids and want a relationship but were willing to do that on my terms and would still be there even if I needed more space, asked what they could do to help out, and asked if it was OK to still check in. They also added in that they thought he was a fool and that he was ruining the best thing that ever happened to him, but that was the extent of any bad-mouthing.
My ex and I happen to have a very cordial relationship, so we can be in the same place at the same time and spend holidays together. My in-laws reach out to me directly to spend time with the kids, go out to dinner, come to their house, etc. My parents assume he's coming to family gatherings (although I usually extend the invite on their behalf; they don't reach out to him directly).
Reach out to your DIL and your son separately. Let her know that you love her and your grandbaby and want to maintain a relationship and want to help her out in any way that you can. Let your son know that you're sorry about how things are going and will support him as his mother, but that you are going to maintain a relationship with his wife. Don't pry, don't ask for details and if either one starts to share dirt, stop them. They may end up working through this and regret sharing the dirty laundry, or just regret sharing embarrassing, private info even if they move ahead apart. Stay neutral and keep the long view in mind - the end goal is that they work out an amicable enough relationship to both be good co-parents to their child, and for your grandbaby to know that she or he is loved by extended family on both sides and have a relationship with both sides. Whatever you do or say should be in support of that goal. Don't get bogged down in the ugly details - be a source of love and light and support.