You can do a flood fill to do that.
Basically mark all the tiles as not visited and then start with some tile and flood fill from that. Marking all the connected tiles. At the end any tiles not marked are isolated.
I guess the issue would be choosing which tile to start from. Maybe an edge? Depends on what you want to do.