Online you can do that through self-care portal ,but most of times people have to go to nearest office anyway to get the security deposit refunded as they will ask for Bank details,Which can't be provided via portal. So email if you know the email id of your nearest Bsnl SDO / Accounts Officer / Commercial Officer or just walk-in.