mucus plug?

At about how many weeks do you lose your mucus plug? Im 37+2 does it look a certain way? We have all these things coming out from down there so I'd like to know how it looks