A Brockton woman who is six months pregnant has spent nearly a week in the hospital after being detained by ICE agents.