How do I stop my dogs from barking at night when only my wife is home?

My two dogs sleep in the room with my wife and I. But on nights when I get home late or don't come home (work related) they bark at almost every noise they hear. I'm guessing this is the alarm type barking and they're trying to be more protective of my wife... but they don't allow her to get a good nights sleep. When I'm home they sleep throughout the night and don't bark unless there's a really loud noise or loud cats outside.

So I'm curious if there's a way to get them to minimize or stop the barking when it's just them and my wife at home at night?

I have a 5 year old Pug and a rescued 3-4 year old Miniature Poodle mix.