check if a draft has been moved there from publish to draft

As far as I can see, you won’t get any indication a post was previously published, as wordpress remembers only the old versus new transitions.

I recommend you add some meta data, that is use add_action('publish_post', 'your_function') (or similar) to do update_post_meta($post->ID, 'post_published', 'on').

That way, every post gets an indicator when it’s published – and you can then use the condition if (get_post_meta($post->ID, 'post_published', true)=='on') in your ‘draft_to_publish’ actions.