The "hand" that mocked the passions of Ozymandias is the sculptor's; the "heart" that fed those passions was Ozymandias's.
The figure of speech exemplified in "hand" and "heart" is Metonymy.