I am sorry to say that there are no medicines for Varicocele
If the pain is due to infection,it will be relieved by the drugs prescribed by your doctor.
But,get your semen analysis
If it is abnormal,then surgery is the only option.
So,please try with the medicines first.If there is no response,get it operated.
Wish you good health