You might be able to approach it as acknowledging with B that your mom can be rather curious and by reassuring B that you'll respect her confidentiality in all conversations with your mom. You could then ask her just the way you stated it, to please not indulge your mother's curiosity.