A scan tool should be able to capture real time data while the engine is running, and from that you can find out if the O2 sensor is partially working or not at all. After that, some diagnostic work will likely be required to determine if it is the sensor or the wiring.