IR remote control codes

i need to get the codes related to the buttons of a remote control but i already weld the ir receiver to the robotshield and now i dont know how to do this thing because from what i know i have to connect the pins of ir receiver with arduino and then run the program which shows the codes when i press buttons

any suggestions?

Which robot shield are you using ? At worst you will need to remove the IR receiver from it and use it with an Arduino board to determine the codes that the transmitter sends. At best you will be able to write a program to receive the codes on the robot shield/Arduino and display them.