Triggering "Apple chime"

Dear friends,

I have been lurking for quite sometime through the basic coding features of the Arduino and I m really excited of the possibilities. I want to ask for coding examples for triggering an apple chime or actually a sort of an apple chime for my hackintosh.
For those familiar with the Intel NUCs, the retail box, contains a battery powered little light activated module, which plays the Intel logo jingle when you open the box. In other words I will be using this circuit for triggering the Intel sound, by clipping the light sensor and attaching wires to it. I will use the power led connection (5 volt) from the front panel header to activate the sound at startup.
Question:
Can we read the 5v current?
Could you give some coding examples to phrase the question. "If 5v are not present for at least 5000ms (meaning the nuc is definitely off and so when the nuc is at sleep and the led is pulsing, it won't trigger the sound) wait for 5v presence and trigger a momentary (button style) signal to a specific pin that will be connected to the sound module.

Excuse my style of writing, I m a total noob to arduinos.

Any input would be very much appreciated.