How to mount metal box to wooden beam?
Any wood thread with adequate penetration will do, but I'd avoid black oxide (drywall) screws--they're quite brittle. No need to pilot unless the beam framing is extremely hard (or you hit a knot). 

Get at least 1-1/4" into the framing (not a beam wrapper) and be happy.