DriveDX provides an "SSD Lifetime Left" indication.
DriveDX is an interface for smartmontools smarctl, which is a SMART monitor. My question isn't whether it can be detected or not but whether the Mac itself would give out a warning.
If any one has been following the SSD endurance experiment, it took a long time but finally all the SSDs in the experiment died. Here's what I think is the last link in the experiment:
http://techreport.com/review/27909/the-ssd-endurance-experiment-theyre-all-dead
Pretty interesting stuff, IMHO.