Assuming you have the bee analyzer in front of the turtle:
Code:
m = peripheral.wrap("front")
t = m.analyze
for key,value in pairs(t) do
print(key,value)
end
That will write down all the information it gets about the bee.
If you want to look at specific information, you can do something like this:
Code:
print("Primary species: "..t["speciesPrimary"])
That will show you the primary species of the bee that was analyzed.
Be advised that the analyzer doesn't actually analyze bees, you have to use a beealizer for that. The analyzer simply reads the information about the bee into the computer. Also, you have to put the bee inside the analyzer, either manually, with pipes, or by instructing the turtle to transfer the bee from its inventory into the analyzer.