How much is the deposit and what is the policy regarding the deposit?
I would assume it's nonrefundable but you have nothing to lose by inquiring about it. Worst case they will say no.
If you are pretty sure about your choice of taking on the better offer, it's wise to proceed with caution since it's bad taste to change your mind again.