South-east Australia is facing a weekend of heatwaves, with temperatures forecast to push 40 degrees in parts of Sydney.