Wow, great deal! Welcome to the Ranger community.
Unfortunately it doesn't work that way regarding 4WD-related trouble coes. Those kind of codes must be read by a special scanner tool that only a few shops and the Ford dealer would have. Did you check the fuses/relays?