Yes, Vcc is connected to Vout of the regulator. So as long as VIN > 3.3+Vdropout, Vcc should be 3.3v.
I can think of two things to do:
- Connect Vbatt to an analog in, using a resistor divider to scale 4.2v to the internal reference voltage (e.g. 39k and 56k for 2,56v)
- Measure Vcc, when it drops from 3.3v, that means the battery is below 3.3+Vdropout. If you know what Vdropout is you know what Vbatt is.
1 is more accurate, you know exactly where the battery sits, but requires extra parts and an analogue pin. 2 is free, and if all you want is to know when the battery is getting low, it's good enough.
Home this helps.