The pair, aged 89 and 69, were not hurt in the raid at a rural property near Cargenbridge just after 1.30 am today.
However, the thieves stole jewellery and cash.
Police are investigating and have appealed for witnesses.
Detective Inspector Dean Little said “This type of crime is rare for Dumfries and Galloway and a team of detectives are now working on the case with a view of catching those responsible.
“We are particularly keen to hear from anyone that saw three men dressed in black in or around the area of Cargenbridge or Garden Wise on Castle Douglas Road during the early hours of this morning.
“Likewise, we would be keen to hear about any strange vehicles which might have been seen entering or leaving, or even parked up in the area.
“We are also reviewing CCTV footage from cameras in the area, and any dash cam footage which anyone has while driving in the area at that time would be welcomed.”
Officers can be contacted on the 101 number.