You should ask at check-in, in the lounge, and before boarding at the gate to maximize your chances. I would ask them if they are overbooked, and if yes - tell them that if they need to open up seats in economy - you would be very willing to move - instead of asking them outright for an upgrade. Though my experience with EK is limited.