exergy analysis needs data of the inlet and outlet of turbine, which are defined by energy analysis of the whole cycle. however, you can write exergy balance for the turbine if the inlet and out let conditions are known.
I believe you are referring to the exergy efficiency of a turbine in a power plant. Therefore, I will proceed from this assumption.
There is at least one definition of exergy efficiency for each component of a power plant, whether it be steam and/or gas. Considering total exergy flows, in the case of a steam turbine or a gas turbine (expander), the product is the generated power and the fuel is the decrease in flow exergy. This definition cannot be applied, for instance, to heaters, coolers, heat exchangers, pumps, and compressors. The textbook by Moran, Shapiro et al. covers this topic at an introductory level.
As you delve deeper into this subject, you will encounter dissipative equipment. These devices consume exergy but do not generate an exergy product. Typical examples are the condenser in a Rankine cycle and the expansion valve in refrigeration and heat pump cycles.
There are proposals for defining second-law efficiencies for dissipative equipment. My recommendation is to research the H&S, UFS, and A&F Models, which address this topic. Look for works produced by the Nucleus of Excellence in Thermoeconomics and Energy Sustainability (NETES).