Next Token tokenizer idx

Hi
Can I access the idx (from the tokenizer) of the next token some how?
Thanks!