What do I do if the dog I'm boarding has worms?

The dog I am boarding will be picked up this evening and on our walk just now, I noticed she had worms in her poo. I plan on telling the owner but I'm concerned about my own dog (she does take monthly prevention meds though). Just wondering if others have experienced this and any advice about it. I've never dealt with worms before. #ew