command arduino to show me which digtal pin gives output

let say im using remote desktop to control another computer from other place using internet. and i want to know which digital pin is sending output. how can i command arduino to print which digital pin is currently sending an output?

By sending an output do you mean "has been set to be an output" because sending an output has no meaning.

If so you need to look inthe data direction register for each port. See the page on direct port manapulation.

If you mean is a pin LOW or HIGH then you can always do a digitalRead(thatPin); on the pin in question.