Welcome! What you want to do has many solutions. Since you posted on the Arduino community I would suggest you get two Arduinos. The reason for two is if something fails you can check it against a known good unit. You will have to do some research on your own but you can do it. There are sound sensors available for the Arduino, many are not very expensive. You will need an interface for the lamp, hopefully if you do not have experience with mains you will have some help. For this I would suggest a relay module, most have a LED that will light when turned on, eliminating the need to connect the lamp until it is working. You can download the Arduino IDE for free but a donation is always appreciated. Your computer will determine which version of the IDE you want. While you are waiting on your Arduino(s) and modules to arrive you can go online and watch several tutorials that are free and will cover the various parts you have chosen. You can also load the IDE and see what is available especially in the examples, when your Arduino(s) arrive try some of them. Happy Computing!