Look at the back of the box. That is the whole answer, and the original reply had it right.
PlayStation 2 titles that supported network play carried a small marked box near the bottom of the rear cover, reading something along the lines of "Online: Broadband Ethernet Adapter Required". If that mark is not there, the game has no online component. Some later releases also printed the number of players supported over the network.
Two things have changed since the era. The official online service was shut down years ago, so the vast majority of PS2 online games no longer have servers to connect to. And the ones that still work usually do so through unofficial fan-run server projects that require a network adapter and some configuration.
For a full historical list, the Wikipedia page on PlayStation 2 network games is the standard reference. For actually playing online today, check whether a community server exists for the specific title first.