A simple way is to use the specification of the beam, most beams will have a specification saying how much it ways per meter or per foot.
Calculation.
weight = Area*Length*density
*Note that when calculating the weight of a beam for structures a safety factor which will be defined in you country design code