You could try getting a bucket and make a little ramp leading into it, put some shavings in the bucket but don't fill it right up just enough for a soft landing and make a little trail of food, it's a long shot but worth a try.
Also I would clean your guinea pigs cage out just in case your hammie did fall in.
hope this helps O0