I don’t think you can, you can get a list of selected faces, but not vertices.
Incidentally, I discovered another weird bug while trying to test this, when in face mode (f-key), and trying to use the text editor, there seems to be some key repeat bug. Pressing any key prints a string of characters, as if there is no key repeat delay.