Infrared spectroscopy
Substellar objects are cool enough to have water vapor in their atmosphere. Infrared spectroscopy can detect the distinctive color of water in gas giant size substellar objects, even if they are not in orbit about a star.