How long does THC stay in your and the unborn babys system, and will they be able to detect it when I deliver since I quit now?

It depends. Thc in the urine can be detected for weeks or even a few months depending on the test used. Similarly it can be detected for a few months in the stool of a new born baby.