Is there way getting biomass by using gregtech machines?
Nope, the only thing GT can do is macerating things to get biochaff. You need to use IC2's technology to get biomass and transform it into biogas, and then you can't use it in GT's generators.
We hope GT support for IC2 biomass/biogas will come soon, some of us has been harassing Greg to add compatibility. :p