I know of no way to do that directly.
However you could select the desired Block and copy it to the Toolchest then open a new Project and copy the Block into it. Now that project will have only variables used by your target Block. You can then export the variables.