Technically, you can never get all the addresses given that many addresses are not known on the network (think paper wallets). Until an address has done a transaction on the network or a key is published online it is not possible to know the balance of that address.
For example, no one knows Satoshi's addresses, but they are rumored to contain upwards of 1,000,000 Bitcoins.