You can pass variables to InfoPath on Open.
Or once the form is open, which can be accomplished by the user accessing a hyperlink to the form, then you can pass variables through the object model as well.
Another option is saving the data in a xml file for the InfoPath form to consume on load or access later or use a database to pass the data.