Tokens on the Ethereum blockchain are normally stored inside an ERC20 compliant smart contract. Inside this contract the balance of each account is held inside a mapping from addresses to balances, as is explained quite well in this article. The total supply (as shown here) is stored in a state variable:
uint256 public totalSupply;
The theoretically largest value that can be stored in this variable is
2**256 - 1.