Never hear of using coffee, I would think it would give it more of a coffee flavor rather than a smoked flavor. Both bacon and ham are smoked, so yes rendering of some of the fat and then cooking with it may impart some smoke.

By the way, what are trying to add smoke flavor to? There may be some other methods we could use.