Perhaps a car suction cup mount would work (for example
http://a.co/0WNQH2x). Attach it to the back of the iMac and then bend it around.
Another option would be to get some desktop speakers and put a charging stand on top of one of them.
As an Amazon Associate, MacRumors earns a commission from qualifying purchases made through links in this post.