Its unlikely in this country if you commited a really hanus crime you would be allowed to keep your baby with you. Most the mother and baby facilities here are in low security, open or semi open prisons.
I agree if the woman was serving a high sentence it would not be advisable for her to keep the child, besides the wrench of separation when the child is 18 months old would not be beneficial to mother or baby