If you still going office: Talk to your boss 1-1 in a meeting room privately.
If you are working from home: Message or email your boss depending on his or her preference ask for an phone call, then announce to him or her in a phone call that you are pregnant and when is your estimated EDD etc...