Hi Shilpa,
I am not very sure about this.
To be honest I wouldnt think that you would be able to come and live in spain permanently with your husband only having a work visa. Dont quote me on that, but i think you would only be able to come here on the normal 90 day tourist visa.
If you had your baby here which I did, you would have to go to private hospital unless your husband has healthcare here and you could be his dependent but you would need an NIE number which Im not sure if you will be able to get.
I dont know how expense private hospitals are in Spain to have a baby either.
I am sorry that I couldnt be more help.
Karen