If your hamster's old and bloated, and it's likely to be water retention due to a heart condition or kidney failure, you can try dandelion tea. It's a diuretic and helps them get rid of liquid in their system.The tricky part though is how much to feed your hamster. 0.5ml is probably too much for one serving. Too much liquid entering the system at once may make it worse.
I found the dried version from chinese medicine hall. ask for "pu(2) gong(1) ying (1)". and just boil it in water, making the tea! It'll probably be better if you can find fresh ones and feed directly to them. I couldn't find it in Singapore though.. :(
DISCLAIMER: We're not vets and are no where near being one. So it's just a suggestion picked up from forums. It did work for a while though.. So i guess if done correctly, it may relief your hamster from the bloatedness.