Parts of New South Wales are bracing for sweltering condition with a heatwave forecast for the next couple of days.