It really depends on the JVM implementation, but overall the Java implementation is based on the functionality of the streaming OS. As far as I know, there are no public and standard extensions to establish proximity. However, there may be experimental JVMs that offer hooks.
Also, interfering with the JVM abstraction to get confused directly with the underlying platform goes to a certain extent (and IMHO) against the spirit of Java.
source share