You may be very surprised at how your parents will react. They may be a bit disappointed that you may not finish your course at this time, but they may be very excited about a new grandchild.
Do tell them right away. Obviously this worries you and what better thing to do than get it off your chest

