This can be done via the "decodeAddress" API call. Status should be "success" if the address is valid, but version and stream number should also be checked. Here are some other values possible for "status": 'checksumfailed', 'invalidcharacters', 'versiontoohigh'