How to detect if the board is connected to PC?

PeterH:
Is there any way to tell whether the Serial output buffer is full? I haven't looked into how it works, but I'm guessing there's some sort of FIFO within the Arduino runtime. That might offer a way to tell whether the Serial stream is actually moving.

Since Serial doesn't have any handshaking, there's no way to tell if the usb chip is actually reading the stream.