Hello,
The baby will be born Serbian ( you can register the baby at the corresponding consular office and obtain his passport ) , but as he gets the same right to reside in Spain as you, after the baby turns one year, you will be able to apply for his/her Spanish Nationality.
Regards,
Bookmarks