using PWM outputs after setting the value, is there a way to read what was sent?

My origional question and post was to get it after some code some where set it. so i didn't have to worry if I have a good value or not it is what is there in one simple sweep.

States of pins are set either by code within the Arduino's processor, of by inputs from outside the Arduino's processor. There is not "some code somewhere", that does not consist of one of these two things.