Australia is considering how it can help bring tens of thousands of people home from the Middle East.