A pill prescribed for epilepsy sufferers could also prevent people from snoring, according to the findings of a new study.