Inferring the companion mass distribution to ELM WDs