On the Airbus we practice this during conversion.
Basic assumption is a 5 degree slope, so at FL 390 you can glide just under 80 miles, FL200 means 40 miles, 10000 ft equals 20 miles etc. Aim towards the runway then turn onto a downwind 2.5 miles out (use the map display). The base turn loses 2500 ft so a quick calc gives you a clue how far to extend your downwind. Turn back, configure appropriately and land.
Oh and we'd Autoland in this case. Only CAT3A though. Seen it done in the sim, quite impressive and autoland with NO engines running.