We are planning an enhancement within our Topology and Smartscape API in order to show the monitoring state and action required. With that enhancement you will be able to automatically check which hosts need a restart.
So far you have to check the Dynatrace deployment Web UI to get that information.