Testing SD cards

I was wondering about SD card lifetimes and wear etc, following several recent power cuts and I thought …

Are there any ways to interrogate an SD card to discover how worn it is? e.g. how many unused backup sectors it has (or whatever they’re called), or how many write operations it’s performed or any other measure of wear/life.

I searched a bit but found lots of discussions with no clear how-tos, so I thought somebody here might have looked at the question.