How to get the list of nodes which left the cluster?

There is no way for Elasticsearch to answer this question, because there is no way for Elasticsearch to tell the difference between a node that failed and a node that was deliberately removed from the cluster. You need to compare the list of nodes in the cluster to your own external list of the nodes that you expect to be in the cluster.