Unfortunately you have learned a very important lesson.. That you never, never let a dog have access to another dog's litter. I have heard of even jumping into an ex-pen and eating the babies.
Whatever happened, it was instinct and although hard for us humans to understand, no sense punishing your Westie.