Hi @shaileeM ,
See the post below. It will be useful for you.
I guess this could be done using SP-Config API.