This is probably a very late reply for you, but I don’t think this is possible. I’ve been looking in to this today as well, but the issue here is that your script sort of pauses when AE is rendering. So even if there was a way of getting that value, there would be no way to retrieve the information and do something with this in real time.
I hope I’m wrong on this one and you somehow already figured out how to do this. If that’s the case, please share!