Where the information comes from depends on how the third-party profile/plugin author configured this.
You can have internal state variables within VoiceAttack that have their values set when certain commands are executed(I.E. their state is completely separate from the game you're interfacing with, and can lose synchronization), or a plugin that retrieves data from the game in some way and feeds that into VoiceAttack variables.
VoiceAttack does not natively pull data from any game, so again, this is something you'll want to ask the author of the third-party plugin/profile you have installed.