There might be a better way, but this should work:
(for-each (lambda (x)
(run (ssh ,x uptime)))
(run/strings (cat /etc/hosts)))