I'm not expert at all. But if the problem is actually happening at the mom's house, it seems to me that the problem is more likely centered there, if it's enviromental/parenting related.
It would be best to get her checked by the pediatrician, but it sort of sounds like the potty training could be a control issue (or for attention) between the mom and your daughter. Or, that the mom is not being proactive by reminding her to go/taking her to the bathroom at regular intervals.
Don't let the mom blame you for this though: if she were having a problem at your place or in somehow related to your house or the parenting there, I seriously doubt she'd hold all that distress inside (no pun intended!) and let it go at Mom's--most 4yos don't have that much forethought.
I agree with DVMMOM-both parents should be unemotional about it, and have her help clean up the messes; it's part of the natural consequences to the action. One other mom (in a similar post) recommended a cold shower/wash off in the tub, or making the child help wash the underwear out in the cold water (it's unpleasant but doesn't hurt).